package zyh.service.impl;

import zyh.hibernate.dao.iface.INewsDao;
import zyh.hibernate.pojo.News;
import zyh.service.iface.INewsService;

import java.util.List;

public class NewsService implements INewsService {
    private INewsDao newsDao;
    @Override
    public List<News> findAll() { return newsDao.findAll(News.class); }

    public INewsDao getNewsDao() { return newsDao; }

    public void setNewsDao(INewsDao newsDao) { this.newsDao = newsDao; }
}
